import d1 from "~/assets/theme/comment/dtkp-01.png"
import d2 from "~/assets/theme/comment/dtkp-02.png"
import d3 from "~/assets/theme/comment/dtkp-03.png"
import d4 from "~/assets/theme/comment/dtkp-04.png"
import d5 from "~/assets/theme/comment/dtkp-05.png"
import d6 from "~/assets/theme/comment/dtkp-06.png"
import d7 from "~/assets/theme/comment/dtkp-07.png"
import d8 from "~/assets/theme/comment/dtkp-08.png"
import d9 from "~/assets/theme/comment/dtkp-09.png"
import d10 from "~/assets/theme/comment/dtkp-10.png"
import d11 from "~/assets/theme/comment/dtkp-11.png"
import d12 from "~/assets/theme/comment/dtkp-12.png"
import d13 from "~/assets/theme/comment/dtkp-13.png"
import d14 from "~/assets/theme/comment/dtkp-14.png"
import d15 from "~/assets/theme/comment/dtkp-15.png"
import d16 from "~/assets/theme/comment/dtkp-16.png"

const modules = [d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16];

export const randomCornerMark = () => {
    let pos = Math.floor(fullClose(0, modules.length - 1))
    return modules[pos]
}

// 取得[n,m]范围随机数
function fullClose(n: number, m: number) {
    let result = Math.random() * (m + 1 - n) + n;
    while (result > m) {
        result = Math.random() * (m + 1 - n) + n;
    }
    return result;
}
